﻿using SqlSugar;

namespace Zhaoxi.SqlSugar.Models
{
    public class Company
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        public string? CompanyName { get; set; }

        public DateTime CreateTime { get; set; }
         
        [Navigate(NavigateType.OneToMany, nameof(User.CompanyId))]// 一对多的配置方式
        public List<User>? UserList { get; set; }
    }
}
